package com.coder.bike.ai;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

/**
 * @ClassDescription:
 * @JdkVersion: 21
 * @Author: 沈诩宸
 * @Created: 2025/6/12 18:26
 */
@AiService(streamingChatModel = "qwenStreamingChatModel"
        , chatMemoryProvider = "chatMemoryProvider",
        contentRetriever = "contentRetrieverXiangXiang"
)//配置向量存储)
public interface XiangXiangAgent {
    @SystemMessage(fromResource = "my-prompt-template.txt")
    Flux<String> chat(@MemoryId Long  memoryId, @UserMessage String userMessage);
}
